package com.sugon.dao;

import com.sugon.entity.ScarpListEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * 报废清单(新)Dao
 *
 * @author sugon
 * @date 2020-02-10 16:37:15
 */
public interface ScarpListDao extends BaseDao<ScarpListEntity> {

    /**
     * 删除指定备件换件记录对应的报警记录
     *
     * @param consumingRecordId 换件记录ID
     * @return
     */
    @Delete("DELETE FROM SCARP_LIST WHERE CONSUMING_RECORD_ID = #{consumingRecordId}")
    int deleteByConsumingRecordId(@Param("consumingRecordId") String consumingRecordId);

}
